package com.ruoyi.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ElectronicReceiptMapper;
import com.ruoyi.system.domain.ElectronicReceipt;
import com.ruoyi.system.service.IElectronicReceiptService;

/**
 * 电汇回执单Service业务层处理
 *
 * @author zk
 * @date 2025-09-23
 */
@Service
public class ElectronicReceiptServiceImpl implements IElectronicReceiptService {

    @Autowired
    private ElectronicReceiptMapper electronicReceiptMapper;

    /**
     * 查询电汇回执单
     *
     * @param id 电汇回执单主键
     * @return 电汇回执单
     */
    @Override
    public ElectronicReceipt selectElectronicReceiptById(Long id) {
        return electronicReceiptMapper.selectElectronicReceiptById(id);
    }

    /**
     * 查询电汇回执单列表
     *
     * @param electronicReceipt 电汇回执单
     * @return 电汇回执单
     */
    @Override
    public List<ElectronicReceipt> selectElectronicReceiptList(ElectronicReceipt electronicReceipt) {
        return electronicReceiptMapper.selectElectronicReceiptList(electronicReceipt);
    }

    /**
     * 新增电汇回执单
     *
     * @param electronicReceipt 电汇回执单
     * @return 结果
     */
    @Override
    public int insertElectronicReceipt(ElectronicReceipt electronicReceipt) {
        return electronicReceiptMapper.insertElectronicReceipt(electronicReceipt);
    }

    /**
     * 修改电汇回执单
     *
     * @param electronicReceipt 电汇回执单
     * @return 结果
     */
    @Override
    public int updateElectronicReceipt(ElectronicReceipt electronicReceipt) {
        return electronicReceiptMapper.updateElectronicReceipt(electronicReceipt);
    }

    /**
     * 批量删除电汇回执单
     *
     * @param ids 需要删除的电汇回执单主键
     * @return 结果
     */
    @Override
    public int deleteElectronicReceiptByIds(Long[] ids) {
        return electronicReceiptMapper.deleteElectronicReceiptByIds(ids);
    }

    /**
     * 删除电汇回执单信息
     *
     * @param id 电汇回执单主键
     * @return 结果
     */
    @Override
    public int deleteElectronicReceiptById(Long id) {
        return electronicReceiptMapper.deleteElectronicReceiptById(id);
    }
}
